.panel {
  background-color: #fff;
  box-shadow: 0px 8px 20px 0px rgba(112, 109, 100, 0.2);
  border-radius: 2px;
  // height: 100%;
  z-index: 2;
  overflow: hidden;
  min-height: 520px;

  &:hover {
    overflow-y: auto;
  }

  &-title {
    border-bottom: solid 1px #eee;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    line-height: 30px;
    display: flex;
    align-items: center;

    &>div {
      cursor: pointer;
      width: 50%;
      height: 32px;
      text-align: center;

      &.active {
        background-color: #3477ec;
        border-radius: 0 10px 0 0;
        color: #fff;
      }

      span {
        margin-left: 10px;
      }
    }
  }

  .selected-list {
    padding: 16px 10px 10px;

    li {
      margin-bottom: 6px;
      font-size: 12px;
      line-height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        cursor: pointer;
        width: 20px;
        height: 20px;
        margin-right: 6px;
      }

      span {
        &:nth-child(2) {
          font-weight: bold;
          width: 76px;
        }

        &:nth-child(3) {
          min-width: 16px;
        }
      }

      .switch {
        cursor: pointer;
        width: 24px;
        height: 24px;
        background-image: url(../../../../assets/images/map/icon-switch-on.png);

        &.off {
          background-image: url(../../../../assets/images/map/icon-switch-off.png);
        }
      }
    }
  }

  .dot {
    width: 6px;
    height: 6px;
    background: #E1E8EE;
    border-radius: 50%;
    cursor: pointer;
  }

  .slick-active .dot {
    background: #B8D5FF;
  }

  .drainage-chn {
    border-top: solid 1px #E1E8EE;
    padding: 10px;

    .title {
      margin-bottom: 10px;

      &::before {
        content: '';
        display: inline-block;
        width: 3px;
        height: 11px;
        background-color: #0092f1;
        margin-right: 6px;
      }
    }
  }

  &.panel-monitor {
    padding: 10px;

    .chn-info {
      display: flex;
      align-items: center;
      padding: 15px 0;
      height: 70px;
      background-color: #f8f8f8;

      li {
        width: 50%;
        display: flex;
        justify-content: center;

        &:first-child {
          border-right: solid 1px #e2e2e2;
        }

        img {
          width: 40px;
          height: 40px;
          margin-right: 10px;
        }
      }
    }

    .sub-title {
      font-size: 14px;
      line-height: 18px;
      margin: 10px 0;
      color: #555;
      font-weight: bold;

      &:before {
        content: "";
        display: inline-block;
        width: 3px;
        height: 14px;
        background-color: #0496ff;
        margin-right: 8px;
      }
    }

    ul.total {
      display: flex;
      height: 60px;
      background-color: #f8f8f8;
      padding: 12px 0;

      li {
        width: 33.3%;

        &:not(:last-child) {
          border-right: solid 1px #e2e2e2;
        }

        div {
          text-align: center;
        }
      }
    }

    .info-text {
      color: #777;
      font-size: 12px;
    }

    .info-value {
      color: #0381dc;
      font-size: 14px;
      font-weight: bold;
    }

    .detail-button {
      cursor: pointer;
      padding: 8px;
    }

    .alert-table {
      td {
        color: #f1413a;
        padding: 8px 4px;
      }
    }

    .danger-box {
      color: #777777;
      font-size: 12px;
      line-height: 18px;
      padding: 6px 10px;
      text-indent: 24px;
    }
  }

  .content {
    padding: 0 10px;
    height: 160px;
    overflow-y: hidden;

    p {
      margin-bottom: 8px;
    }

    &:hover {
      overflow-y: auto;
    }
  }

  th,
  td {
    color: #555;
    font-family: MicrosoftYaHei;
    font-size: 12px;
    padding: 7px;

    span {
      &.active {
        display: inline-block;
        animation: zoomOut1 1s ease-in-out;
      }
    }
  }

  @keyframes zoomOut1 {
    0% {
      opacity: 1;
    }

    50% {
      opacity: 0;
      transform: translateY(-20px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  th {
    background-color: #dbe4ea;
  }

  tbody {
    tr:nth-child(odd) {
      background-color: #fff;
    }

    tr:nth-child(even) {
      background-color: #f5f8fa;
    }
  }

  ::ng-deep {
    .ant-empty-normal {
      margin: 12px 0;
    }

    li.slick-active .dot {
      background: #B8D5FF;
    }
  }
}
